package com.xhyu.controller;

import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/order")
public class OrderController {

    @GetMapping("/info")
    public String getOrderInfo(HttpServletRequest request) {
        String path = request.getRequestURI();
        int port = request.getLocalPort();
        return "provider: groupORD2 | port: " + port + " | path: " + path;
    }
}